package com.ldc.service.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ldc.model.SysRoleMenu;

import java.util.List;

/**
 * 功能说明
 *
 * @auther liudc
 * @since 2023/6/12
 */
public interface RoleMenuService extends IService<SysRoleMenu> {
    List<SysRoleMenu> findListBy(LambdaQueryWrapper<SysRoleMenu> queryWrapper);

    List<SysRoleMenu> findListByMenuId(long menuId);

    List<SysRoleMenu> findListByMenuIds(List<Long> menuId);

    List<Long> getMenuIdsByRoleIds(List<Long> roleIdList);

    SysRoleMenu findBy(LambdaQueryWrapper<SysRoleMenu> queryWrapper);

    int batchDeleteBy(LambdaQueryWrapper<SysRoleMenu> queryWrapper);

    int batchDeleteByMenuIds(List<Long> ids);
}
